package com.lucker.service.push.socket;

import java.net.Socket;

import com.lucker.common.model.PushEntity;

public interface SocketService {
	
	public void initSocketListener();
	
	
	/***
	 * 
	 * @param targetId 采种ID，如果不方便获取可以用 省ID+彩票大类ID，确定唯一
	 * @param message 向客户端推送的内容
	 * @throws Exception 异常
	 */
	public void pushMessage(String targetId,String message) throws Exception;
	
	public void pushMessage(String targetId,PushEntity<?> pushEntity) throws Exception;
	
	
	public void sendKeepalivedMessage() throws Exception;
	
	public void sendMsg(String targetId,Socket sock,PushEntity pushEntity) throws Exception;
	
	
	public void removeDisabledSocket(Socket _sock,String targetId) ;

}
